demos: Do not use deprecated gtk_widget_get_child_requisition()
authorJavier Jardón <jjardon@gnome.org>
Mon, 13 Sep 2010 20:10:47 +0000 (22:10 +0200)
committerJavier Jardón <jjardon@gnome.org>
Mon, 13 Sep 2010 20:37:11 +0000 (22:37 +0200)
Use gtk_size_request_get_size() instead

demos/gtk-demo/offscreen_window.c
demos/gtk-demo/offscreen_window2.c

index e4b454d3c511b009310f707684b43bd0abb44b62..622250efd64ea699b68ee3a9782cc68195392f25 100644 (file)
@@ -434,7 +434,8 @@ gtk_rotated_bin_size_allocate (GtkWidget     *widget,
       s = sin (bin->angle);
       c = cos (bin->angle);
 
-      gtk_widget_get_child_requisition (bin->child, &child_requisition);
+      gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child),
+                                 &child_requisition, NULL);
       child_allocation.x = 0;
       child_allocation.y = 0;
       child_allocation.height = child_requisition.height;
index 642fc461570d09652c5bcfce7e48deded3ff7065..6e7cceeb4cfe83356342015b74b902935c7fbf34 100644 (file)
@@ -349,7 +349,8 @@ gtk_mirror_bin_size_allocate (GtkWidget     *widget,
       GtkRequisition child_requisition;
       GtkAllocation child_allocation;
 
-      gtk_widget_get_child_requisition (bin->child, &child_requisition);
+      gtk_size_request_get_size (GTK_SIZE_REQUEST (bin->child),
+                                 &child_requisition, NULL);
       child_allocation.x = 0;
       child_allocation.y = 0;
       child_allocation.height = child_requisition.height;